﻿using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;

namespace WcfMail.Interface
{
    /// <summary>
    /// (消息)传输接口
    /// </summary>
    public interface ITransfer
    {
        /// <summary>
        /// 发送消息
        /// </summary>
        /// <param name="message"></param>
        /// <returns>发送是否成功</returns>
        bool Send(ISysMsg message);
        /// <summary>
        /// 接收消息
        /// </summary>
        /// <param name="message"></param>
        /// <returns>接收是否成功</returns>
        bool Receive(ISysMsg message);
        /// <summary>
        /// 消息队列，用于存储发送或者接收的消息
        /// </summary>
        List<ISysMsg> MessageQueue { get; set; }
    }
}
